public class IDTable {
	public boolean[] taken;

	public IDTable(int cap) {
		taken = new boolean[cap];
		for (int i = 0; i < cap; i++) {
			taken[i] = false;
		}
	}

	public boolean check(int id) {
		return taken[id];
	}

	public void set(int id) {
		this.taken[id] = true;
	}

	public void clr(int id) {
		this.taken[id] = false;
	}
}
